import request from '@/utils/request'

// 分页获取工单列表
export function getProductOrderList(params) {
  return request({
    url: '/api/orders/product/list',
    method: 'get',
    params
  })
}

// 根据工艺工序id查询工单列表：
export function getWorkOrdersListByCraftProcedure(params) {
  return request({
    url: '/api/workorders/craft/procedure/order/list',
    method: 'get',
    params
  })
}

// 获取生产订单下客户名称列表
export function getCustomerList() {
  return request({
    url: '/api/orders/select/customer/list',
    method: 'get'
  })
}

// 生产订单物料模糊查询
export function getMaterialList(params) {
  return request({
    url: '/api/materials/product/order/material',
    method: 'get',
    params
  })
}